if ((name == 'shift' || name == 'splice') && obj.length === 0) delete obj[0];